import 'dart:ui';

import 'package:flutter/material.dart';
import 'package:imperius_insights/entity/project.dart';
import 'package:imperius_insights/treaty/palette.dart';

Color stagingToColor(Staging staging) {
  if (staging == Staging.Develop) {
    return Colors.green;
  }
  if (staging == Staging.PendingToTest) {
    return Colors.amber;
  }
  if (staging == Staging.QATesting) {
    return Colors.amber;
  }
  if (staging == Staging.PrePublish) {
    return palette.theme;
  }
  if (staging == Staging.Scheduled) {
    return Colors.teal[300];
  }
  if (staging == Staging.Unset) {
    return Colors.black;
  }
  if (staging == Staging.PostPublish) {
    return palette.theme;
  }
  return Colors.red;
}